﻿using System;


namespace UIFramwork
{
    /// <summary>
    /// 特性 UI 信息
    /// </summary> 
    [AttributeUsage(AttributeTargets.Class)]
    public class UIDetailAttribute: Attribute
    {
        /// <summary>
        /// 描述信息
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Resource 路径
        /// </summary>
        public string ResourcePath { get; set; }
        
        /// <summary>
        /// AssetBundle 路径
        /// </summary>
        public string AssetBundlePath { get; set; }


        public UIDetailAttribute(string description, string resourcePath)
        {
            Description = description;
            ResourcePath = resourcePath;
        }
        public UIDetailAttribute(string description, string resourcePath, string assetBundlePath)
        {
            Description = description;
            ResourcePath = resourcePath;
            AssetBundlePath = assetBundlePath;
        }
    }
}
